第 2步:现在让我们重命名我们的新函数,我们将其命名为handle_user_errors

  • 在上面写着MAIN FUNCTION的地方,将my_function()更改为handle_user_errors()
  • 然后,将您的文档字符串更改为以下内容: """ Handles the user's errors """
  • 然后,在main()中,将my_function()更改为handle_user_errors()
  • handle_user_errors()没有参数,但会将用户的输入作为列表返回

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)